package com.base.mapper.voipmapper;

import com.base.po.voip.MoneyGold;
import com.base.po.voip.MoneyGoldExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface MoneyGoldMapper {
    int countByExample(MoneyGoldExample example);

    int deleteByExample(MoneyGoldExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MoneyGold record);

    int insertSelective(MoneyGold record);

    List<MoneyGold> selectByExample(MoneyGoldExample example);

    MoneyGold selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MoneyGold record, @Param("example") MoneyGoldExample example);

    int updateByExample(@Param("record") MoneyGold record, @Param("example") MoneyGoldExample example);

    int updateByPrimaryKeySelective(MoneyGold record);

    int updateByPrimaryKey(MoneyGold record);

    BigDecimal getGoldMoneyByUserId(@Param("userId") String userId, @Param("statement") Integer statement, @Param("status") int status);

    List<MoneyGold> getGoldMoneyDetailByUserId(@Param("userId") String userId, @Param("statement") Integer statement);

    List<MoneyGold> selectListWeb(Map<String, Object> item);

    BigDecimal countMoneyUserLike(@Param("txUserId") String txUserId, @Param("status") Integer status, @Param("str") String str);
}